/*
 * @Description:工程化 同步模式
 * @Autor: lcz
 * @LastEditors: lcz
 * @LastEditTime: 2023-10-12 13:52:32
 */
const files = import.meta.glob(["./common/*.ts", "./project/*.ts"], { eager: true });

const modules: { [k in string]: any } = {};
for (const key in files) {
  const moduleName = key.replace(/(\.(\/(common|project)\/)|\.ts)/g, "");
  modules[moduleName] = files[key];
}

export const useMountState = modules.useMountState.default;
export const useUpdate = modules.useUpdate.default;
export const useModel = modules.useModel.default;

export default modules;
